#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
void TestVectorExpand()
{
	size_t sz;
	vector<int> v;
	sz = v.capacity();
	cout << "making v grow:\n";
	for (int i = 0; i < 100; ++i)
	{
		v.push_back(i);
		if (sz != v.capacity())
		{
			sz = v.capacity();
			cout << "capacity changed: " << sz << '\n';
		}
	}
}
int main()
{
	//TestVectorExpand();
	vector<int> v;
	//v.push_back(1);
	//v.push_back(2);
	v.push_back(3);
	vector<int>::iterator pos = find(v.begin(), v.end(), 3);
	v.insert(pos,30);

	//cout << *pos << endl;
	for (auto e : v)
	{
		cout << e << " ";
	}
	cout << endl;

	return 0;
}